package com.bonuo.crm.mapper;

import com.bonuo.crm.domain.Visit;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface VisitMapper {
    List<Visit> selectVisitList(Visit visit);

    Integer insertVisit(Visit visit);

    Integer deleteVisitById(Integer id);

    Integer updateVisit(Visit visit);

    Integer visitNumByYear(@Param("userId") Integer userId, @Param("startDate") Date startDate, @Param("endDate") Date endDate);

    List<Visit> selectWeeklyVisitList(Integer userId);
}
